import http from "@/utils/http"

export const GetProductList = async (params)=>{
    return await http.get("/product-service/product/list",{
        params:params
    })
}

export const DeleteProduct = async (params)=>{
    return await http.delete("/product-service/product",{
        params:params
    })
}

export const GetProductDetail = async (params)=>{
    return await http.get("/product-service/product",{
        params:params
    })
}

export const CreateProduct = async (data)=>{
    return await http.post("/product-service/product",data)
}

export const UpdateProduct = async (data)=>{
    return await http.put("/product-service/product",data)
}